<template>
  <el-config-provider :locale="localesEl[useLocale.locale]">
    <router-view v-if="route.meta.hide" />
    <Layouts v-else />
  </el-config-provider>
</template>
<script setup lang="ts">
import { localesEl } from '@/languages'
import { useLocaleStore } from '@/stores'
import { useRoute } from 'vue-router'
import Layouts from '@/layouts/index.vue'

const route = useRoute()

const useLocale = useLocaleStore()
</script>

<style lang="less" scoped></style>
